StartPhotoCaptureCommand

class StartPhotoCaptureCommand(interval: Double, @IntRange(from = 0) count: Int, sequenceNumber: Int, frame: MavlinkCommand.Frame = Frame.COMMAND) : MavlinkCommand

MAVLink command which allows to start photo capture.

Parameters

interval

desired elapsed time between two consecutive pictures, in seconds.

count

total number of photos to capture; 0 to capture until StopPhotoCaptureCommand is sent.

sequenceNumber

Capture sequence number starting from 1. This is only valid for single-capture (count == 1), otherwise set to 0. Increment the capture ID for each capture command to prevent double captures when a command is re-transmitted.

frame

the reference frame of the coordinates.

Constructors

Link copied to clipboard
constructor(interval: Double, @IntRange(from = 0) count: Int, sequenceNumber: Int, frame: MavlinkCommand.Frame = Frame.COMMAND)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val count: Int

Total number of photos to capture.

Link copied to clipboard

The coordinate frame; set to global coordinate frame or relative altitude over ground.

Link copied to clipboard

Desired elapsed time between two consecutive pictures, in seconds.

Link copied to clipboard

the raw parameters of the command

Link copied to clipboard

The MAVLink command type

Link copied to clipboard

Capture sequence number.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun write(writer: Writer, index: Int, frame: MavlinkCommand.Frame)

Writes the MAVLink command to the given writer.